package com.saascloud.core;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.InputStream;
import java.util.Date;

/**
 * @Author: lidingyi
 * @Contact: one_dream@aliyun.com
 * @Date: 2022/5/20 14:53
 * @Version: 1.0
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ObsGetResp {
    private String bucketName;
    private String objectKey;
    private ObjectMata metadata;
    private InputStream objectContent;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class ObjectMata {
        private Date lastModified;
        private Long contentLength;
        private String contentType;
        private String contentEncoding;
        private String contentDisposition;
    }
}
